<?php
/*
+--------------------------------------------------------------------------
|   Anwsion [#RELEASE_VERSION#]
|   ========================================
|   by Tatfook Network Team
|   (c) 2011 - 2012 Anwsion Software
|   http://www.anwsion.com
|   ========================================
|   Support: zhengqiang@gmail.com
|   
+---------------------------------------------------------------------------
*/

class c_main_class extends AWS_CONTROLLER
{
	public function get_access_rule()
	{
		$rule_action["rule_type"] = "white"; //黑名单,黑名单中的检查  'white'白名单,白名单以外的检查
		$rule_action["actions"] = array();
		return $rule_action;
	}

	function index_action()
	{
		$this->crumb('邀请好友', '/invitation');
		
		TPL::import_css(array(
			'css/discussion.css'
		));
		
		TPL::assign('draft_count', $this->model('draft')->get_draft_count('answer', $this->user_id));
		TPL::assign('question_invite_count', $this->model('question')->get_invite_question_list($this->user_id, '', true));
		
		TPL::output("invitation/index");
	}
}